package card.rule;

/**
 * @description: 规则工厂
 * @author: ly
 * @date: 2020/8/21 18:25
 */
public class RuleFactory {

    public static <T> T create(Class<T> t) {
        try {
            return t.newInstance();
        } catch (Exception e) {
            System.out.println("！！！出错了！！！");
            System.exit(1);
            return null;
        }
    }
}
